<?php
/**
 * Created by PhpStorm.
 * User: liuhong
 * Date: 2018/7/31
 * Time: 下午6:06
 */

namespace app\common\service;


use app\common\model\UserModel;

class UserService extends BaseService
{
   public $userModel;
   public function __construct()
   {
       $this->userModel=new UserModel();
   }

    /**
     * @param $addInfo
     * @return int|string
     */
   public function add($addInfo){
       $addInfo['create_time']=date('Y-m-d H:i:s');
      return $this->userModel->insertGetId($addInfo);
   }

}